<?php 
// this file gets all parts of the webpage, that are related to the language 
// for example: names of buttons, fields, descriptions and any kind of text that is written in the specific language

function filter_by_language($language)
{ 

//HORIZONTAL
$LRV['vocable_trainer']= 		array("german"=>"MP3 - Vokabeltrainer");
$LRV['language_products']= 		array("german"=>"Sprachprodukte");
$LRV['settings']= 			array("german"=>"Einstellungen");

$LRV['link_vocable_trainer']= 		array("german"=>"vokabeltrainer.html",
										"english"=>"vocabulary.html",
									   "spanish"=>"vocabulario.html",
									   "russian"=>"vocabulary.html");
$LRV['link_language_products']= 		array("german"=>"sprachprodukte.html",
										"english"=>"language-products.html",
									   "spanish"=>"productos-apendizaje.html",
									   "russian"=>"language-products.html");
$LRV['link_settings']= 			array("german"=>"einstellungen.html",
										"english"=>"settings.html",
									   "spanish"=>"ajustes.html",
									   "russian"=>"settings.html");
$LRV['link_configuration']=		array("german"=>"konfiguration.html",
										"english"=>"configuration.html",
									   "spanish"=>"configuracion.html",
									   "russian"=>"configuration.html");
$LRV['link_user']=				array("german"=>"nutzer.html",
										"english"=>"user.html",
									   "spanish"=>"usuario.html",
									   "russian"=>"user.html");
$LRV["link_new_password"]=		array("german"=>"neues-passwort.html",
										"english"=>"user.html",
									   "spanish"=>"usario.html",
									   "russian"=>"user.html");
$LRV['link_header']=		array("german"=>"kopf.html",
										"english"=>"header.html",
									   "spanish"=>"cabeza.html",
									   "russian"=>"header.html");
$LRV['link_horizontal']=				array("german"=>"horizontal.html",
										"english"=>"horizontal.html",
									   "spanish"=>"horizontal.html",
									   "russian"=>"horizontal.html");
$LRV["link_vertical"]=		array("german"=>"vertikal.html",
										"english"=>"vertical.html",
									   "spanish"=>"vertical.html",
									   "russian"=>"vertical.html");
$LRV["link_footer"]=		array("german"=>"fuss.html",
										"english"=>"footer.html",
									   "spanish"=>"pie.html",
									   "russian"=>"footer.html");

//VERTICAL


//PAGE TITLE AND META TAGS
$LRV['page_title']=			array("german"=>
						array("vocable_lists"=>"Vokabellisten","new_vocables"=>"Neue Vokabeln",
						"vocable_boxes"=>"Vokabelboxen","settings"=>"Einstellungen"),
								  "english"=>
						array("vocable_lists"=>"Word Lists","new_vocables"=>"Neue Vokabeln",
						"vocable_boxes"=>"Vokabelboxen","settings"=>"Einstellungen"),
								  "spanish"=>
						array("vocable_lists"=>"Listas de vocablos","new_vocables"=>"Palabras sueltas",
						"vocable_boxes"=>"Cajas de vocablos","settings"=>"Ajustes"),
						"russian"=>
						array("vocable_lists"=>"Списки слов","new_vocables"=>"Отдельные слова",
						"vocable_boxes"=>"Боксы для слов","settings"=>"Настройки"));
$LRV['title_tag']=			array("german"=>
						array("vocable_lists"=>"Vokabeltrainer mit gratis MP3 Vokabeln - Vokabellisten",
						"new_vocables"=>"Vokabeltrainer mit gratis MP3 Vokabeln - Neue Vokabeln",
						"vocable_boxes"=>"MP3 Vokabeltrainer - Vokabelboxen - Lingomoto"),
						"english"=>
						array("vocable_lists"=>"Vocabulary - MP3 Words online - Language Learning - Word Lists",
						"new_vocables"=>"MP3 Vokabeltrainer - Neue Vokabeln - Lingomoto",
						"vocable_boxes"=>"MP3 Vokabeltrainer - Vokabelboxen - Lingomoto"),
						"spanish"=>
						array("vocable_lists"=>"Vocabulario MP3 - Audio vocabulario online - Listas de vocablos",
						"new_vocables"=>"MP3 Vokabeltrainer - Neue Vokabeln - Lingomoto",
						"vocable_boxes"=>"MP3 Vokabeltrainer - Vokabelboxen - Lingomoto"),
						"russian"=>
						array("vocable_lists"=>"MP3 Аудиословарь - Списки слов - Lingomoto",
						"new_vocables"=>"MP3 Vokabeltrainer - Neue Vokabeln - Lingomoto",
						"vocable_boxes"=>"MP3 Vokabeltrainer - Vokabelboxen - Lingomoto"));
$LRV['description_meta_tag']=		array("german"=>
						array("vocable_lists"=>"MP3 Vokabeln online mit dem MP3 Vokabeltrainer lernen - Englisch, Spanisch und Russisch kostenlos zum Download für den MP3 Player - Vokabellisten erstellen",
						"new_vocables"=>"MP3 Vokabeln online mit dem MP3 Vokabeltrainer lernen - Englisch, Spanisch und Russisch kostenlos zum Download für den MP3 Player - Einzelne Vokabeln auswählen",
						"vocable_boxes"=>"MP3 Vokabeltrainer - Vokabelboxen - Sprachen lernen"),
						"english"=>
						array("vocable_lists"=>"Learn MP3 words and vocabulary with your MP3 player - Free download of English, Spanish, Russian and German audio files - Ideal complement to your language course - Word lists",
						"new_vocables"=>"MP3 Vokabeltrainer - Neue Vokabeln - Lingomoto",
						"vocable_boxes"=>"MP3 Vokabeltrainer - Vokabelboxen - Lingomoto"),
						"spanish"=>
						array("vocable_lists"=>"Aprende Vocabulario MP3 - Descarga gratis palabras en inglés, ruso, alemán y español para aprenderlas con tu reproductor MP3 - Complemento ideal a tus clases de idiomas - Listas de vocablos",
						"new_vocables"=>"MP3 Vokabeltrainer - Neue Vokabeln - Lingomoto",
						"vocable_boxes"=>"MP3 Vokabeltrainer - Vokabelboxen - Lingomoto"),
						"russian"=>
						array("vocable_lists"=>"MP3 Аудиословарь - Отдельные слова - Изучение языков",
						"new_vocables"=>"MP3 Vokabeltrainer - Neue Vokabeln - Lingomoto",
						"vocable_boxes"=>"MP3 Vokabeltrainer - Vokabelboxen - Lingomoto"));

//"VOCABLE LISTS"-FILE
//    table with lists - column titles
$LRV['list_table_column_titles']=	array("german"=>
						array("Beschreibung der Liste","Ich spreche","Ich möchte lernen","Benutzername",
						"Anzahl Downloads","Rating (Anzahl)","Datum","Aktionen"),
						"english"=>
						array("Description of List","My language","I want to learn","Username",
						"Quantity Downloads","Rating (Quantity)","Date","Actions"),
						"spanish"=>
						array("Descripción de la lista","Mi lengua","Quiero aprender","Nombre de usuario",
						"Cantidad de descargas","Calificación (Cantidad)","Fecha","Acciones"),
						"russian"=>
						array("Наименование списка слов","Я владею","Я хочу изучать","Имя пользователя",
						"Количество скачиваний","Рейтинг (Число)","Число","Действия"));
//    image links - tooltip
$LRV['image_links_tooltip'] = 		array("german"=>
						array("view"=>"Liste ansehen","rate"=>"Liste bewerten","edit"=>"Liste editieren",
						"add"=>"Liste hinzufügen","delete"=>"Liste löschen"),
						"english"=>
						array("view"=>"View List","rate"=>"Rate List","edit"=>"Edit List",
						"add"=>"Add List","delete"=>"Delete List"),
						"spanish"=>
						array("view"=>"Ver lista","rate"=>"Puntuar lista","edit"=>"Editar lista",
						"add"=>"Añadir lista","delete"=>"Borrar lista"),
						"russian"=>
						array("view"=>"Просмотреть список","rate"=>"Оценить список","edit"=>"Отредактировать список",
						"add"=>"Вставить список","delete"=>"Удалить список"));
						
$LRV['message_no_lists_found'] =	array ("german"=>"Keine passenden Listen gefunden",
										   "english"=>"No matching list found",
										   "spanish"=>"No se han encontrado listas adecuadas",
										   "russian"=>"Подходящих списков не найдено");
$LRV["message_no_vocables_in_list"] =	array ("german"=>"Keine Vokabeln in der Liste. Liste Löschen?",
										   "english"=>"No matching list found",
										   "spanish"=>"No se han encontrado listas adecuadas",
										   "russian"=>"Подходящих списков не найдено");
$LRV['button_back'] = 			array ("german"=>"Zurück",
									   "english"=>"Back",
									   "spanish"=>"Volver",
									   "russian"=>"Назад");
$LRV['actions_description']= 		array ("german"=>
						array("view"=>"Liste ansehen","rate"=>"Liste bewerten","edit"=>"Liste editieren",
						"add"=>"Liste hinzufügen","delete"=>"Liste löschen"),
						"english"=>
						array("view"=>"View List","rate"=>"Rate List","edit"=>"Edit List",
						"add"=>"Add List","delete"=>"Delete List"),
						"spanish"=>
						array("view"=>"Ver lista","rate"=>"Puntuar lista","edit"=>"Editar lista",
						"add"=>"Añadir lista","delete"=>"Borrar lista"),
						"russian"=>
						array("view"=>"Просмотреть список","rate"=>"Оценить список","edit"=>"Отредактировать список",
						"add"=>"Вставить список","delete"=>"Удалить список"));
$LRV['title_translation_view']= 	array("german"=>"Die ersten 20 Vokabeln der Liste als Auszug",
										  "english"=>"The first 20 words of the list as a preview",
										  "spanish"=>"Vista preliminar de las primeras 20 palabras",
										  "russian"=>"Первые 20 слов списка к просмотру");
$LRV['message_choosable_lists']=	array("german"=>"Folgende Vokabellisten kannst du auswählen",
										  "english"=>"You can choose from the following word lists",
										  "spanish"=>"Puedes elegir las siguientes listas de palabras",
										  "russian"=>"Ты можешь выбрать следующие списки слов");
$LRV['list_table_select_order_message']=array("german"=>"Sortierung",
											  "english"=>"Sorted by",
											  "spanish"=>"Clasificado por",
											  "russian"=>"Сортировка");
$LRV['list_table_select_order_options']=array("german"=>
						array(  "neueste Listen",
							"am meisten geladene Listen",
							"am besten bewertete Listen"),
							"english"=>
						array(  "Latest lists",
							"Most downloaded lists",
							"Lists with highest ratings"),
							"spanish"=>
						array(  "Nuevas listas",
							"Listas más descargadas",
							"Listas mejor puntuadas"),
							"russian"=>
						array(  "новейшие списки",
							"чаще всего скачиваемые",
							"получившие высшую оценку"));
$LRV['list_table_select_author_options']=array("german"=>
						array(  "Alle Listen",
							"Meine Listen",
							"Listen von"),
							"english"=>
						array(  "All lists",
							"My lists",
							"Lists of"),
							"spanish"=>
						array(  "Todas las listas",
							"Listas mías",
							"Listas de"),
							"russian"=>
						array(  "Все списки",
							"Мои списки",
							"Списки"));
$LRV['button_filter']=			array("german"=>"Filtern",
									  "english"=>"Filter",
									  "spanish"=>"Filtrar",
									  "russian"=>"Фильтр");
$LRV['lable_list_contains']=		array("german"=>"Suche nach",
									      "english"=>"Search for",
										  "spanish"=>"Buscar por",
										  "russian"=>"Поиск");
$LRV['lable_list_authors']=		array("german"=>"Listen von",
									  "english"=>"Lists of",
									  "spanish"=>"Listas de",
									  "russian"=>"Списки");
$LRV['text_input_filling']=		array("german"=>
						array("list_name"=>"Beschreibung der Liste","user_name"=>"Benutzername"),
						"english"=>
						array("list_name"=>"Description of list","user_name"=>"Username"),
						"spanish"=>
						array("list_name"=>"Descripción de la lista","user_name"=>"Nombre de usuario"),
						"russian"=>
						array("list_name"=>"Тема списка","user_name"=>"Имя пользователя"));
$LRV['option_all_languages']=		array("german"=>"Alle Sprachen",
										  "english"=>"All languages",
										  "spanish"=>"Todas las lenguas",
										  "russian"=>"Все языки");							
$LRV['list_table_select_first_language']=	array("german"=>"Ich spreche",
												  "english"=>"My language",
												  "spanish"=>"Mi lengua",
												  "russian"=>"Я владею");
$LRV['list_table_select_second_language']=	array("german"=>"Ich möchte lernen",
												  "english"=>"I want to learn",
												  "spanish"=>"Quiero aprender",
												  "russian"=>"Я хочу изучать");
//$link_create_vocable_list
$LRV['message_current_list_wrong_langpair']=	array("german"=>"Die Sprachkombination der Liste entspricht nicht der momentan gelernten 
						Sprachkombination. Soll die Sprachkombination in den Einstellungen geändert werden?",
													  "english"=>"The language of the list is not the same language you are learning at the moment. 
													  Do you want to change the languages you have set in your settings?",
													  "spanish"=>"La lengua de la lista no es la misma que estás aprendiendo en este momento. 
													  ¿Quieres cambiar las lenguas en la sección de Ajustes?",
													  "russian"=>"Языковая комбинация списка не соответствует выбранной в настройках языковой комбинации. Изменить языковую комбинацию в настройках?");
$LRV['message_current_list_own_list']=		array("german"=>'Dies war eine eigene Liste, möglicherweise konnten einige Vokabeln nicht hinzugefügt
												werden, da sie sich bereits in den Vokabelboxen befinden!',
												 "english"=>'This was an own list, maybe some words could not be included, 
												 if they are already in your word boxes!',
												 "spanish"=>'Esta era una lista propia. Seguramente algunas palabras no pudieron ser incluídas 
												 por estar ya en tus cajas de vocablos.',
												 "russian"=>'Это был твой собственный список, возможно некоторые слова не добавились, так как они уже находятся в боксах для слов!');
$LRV['link_change']=			array("german"=>"Ändern",
									  "english"=>"Change",
									  "spanish"=>"Cambiar",
									  "russian"=>"Изменить");
$LRV['link_back_to_lists']= 		array("german"=>"Zurück zu den Listen",
										  "english"=>"Back to word lists",
										  "spanish"=>"Volver a las listas",
										  "russian"=>"Назад к спискам");
$LRV['single_list_info']=		array("german"=>
						array("name"=>"Name der Vokabelliste","languages"=>"Sprachenkombination",
						"author"=>"Erstellt von"),
						"english"=>
						array("name"=>"Name of the list","languages"=>"Languages",
						"author"=>"Created by"),
						"spanish"=>
						array("name"=>"Nombre de la lista","languages"=>"Lenguas",
						"author"=>"Creado por"),
						"russian"=>
						array("name"=>"Название списка слов","languages"=>"Языковая комбинация",
						"author"=>"Составитель"));
$LRV['table_translation_titles']=	array("german"=>
						array("words"=>"Ausgangswörter","translations"=>"Übersetzungen"),
						"english"=>
						array("words"=>"Initial Words","translations"=>"Translations"),
						"spanish"=>
						array("words"=>"Palabras iniciales","translations"=>"Traducciones"),
						"russian"=>
						array("words"=>"Изначальное слово","translations"=>"Перевод"));
$LRV['button_last20']=			array("german"=>"Vorherige 20",
									  "english"=>"First 20",
									  "spanish"=>"Primeras 20",
									  "russian"=>"Предыдущие 20");
$LRV['button_next20']=			array("german"=>"Nächste 20",
									  "english"=>"Next 20",
									  "spanish"=>"Siguientes 20",
									  "russian"=>"Следующие 20");						
$LRV['link_path'] =	array ("german"=>"bilder/aktionen",
						   "english"=>"images/actions",
						   "spanish"=>"imagenes/acciones",
						   "russian"=>"images/actions");
$LRV['message_listadd_success'] =	array ("german"=>"Liste erfolgreich hinzugefügt.",
											"english"=>"List has been added successfully.",
											"spanish"=>"Se ha añadido la lista.",
											"russian"=>"Список был успешно добавлен");
$LRV['message_listadd_first_register'] =	array ("german"=>"Listen hinzufügen erst nach der Anmeldung möglich!",
												   "english"=>"Please login/register to add a new list!",
											       "spanish"=>"Por favor regístrate para añadir una lista nueva.",
												   "russian"=>"Добавление списка возможно только после входа в систему!");
$LRV['register_now'] =	array ("german"=>"Jetzt registrieren.",
							   "english"=>"Please register now.",
							   "spanish"=>"Por favor regístrate ahora.",
							   "russian"=>"Зарегистрироваться");
//"VOCABLE LISTS"-FILE END
/*
//"SORT VOCABLES"-FILE
$LRV['table_translation_box_titles']=	array("german"=>
						array("Ausgangswörter","Übersetzungen","Vorher in Box"));
$LRV['mark_all_items']=			array("german"=>"alle");
$LRV['button_delete']=			array("german"=>"Löschen");
$LRV['sort_latest_vocables']=		array("german"=>"Zuletzt gelernte Vokabeln umsortieren:&nbsp;");
$LRV['button_sort_back']=		array("german"=>"Zurücksortieren");
$LRV['button_create_vocablelist']=	array("german"=>"Vokabelliste");
$LRV['sort_by']=			array("german"=>"umsortieren nach");
//used variables from other files
//$link_create_vocable_list
//$first_box_title
//$other_boxes_titles

//"SORT VOCABLES"-FILE END
*/

//"NEW VOCABLES"-FILE
$LRV['label_vocable']=		array("german"=>"Vokabel",
							      "english"=>"Vocable",
							      "spanish"=>"Palabra",
							      "russian"=>"Слово");
$LRV["label_change_language"]=	array("german"=>"Sprachen wechseln?",
							      "english"=>"Change languages?",
							      "spanish"=>"Cambiar lengua?",
							      "russian"=>"Сменить язык?");
$LRV["title_choose_translations"]=array("german"=>"Übersetzungen wählen",
							      "english"=>"Choose translations",
							      "spanish"=>"XXX",
							      "russian"=>"Выбрать перевод");
$LRV["span_sort_into_box"]=		array("german"=>"Einsortieren in Vokabelbox",
							      "english"=>"Sort into vocable box",
							      "spanish"=>"YYY",
							      "russian"=>"Отсортировать в бокс для слов");
$LRV["span_sort_into_list"]=		array("german"=>"Einsortieren in Vokabelliste",
							      "english"=>"Sort into vocable list",
							      "spanish"=>"YYY",
							      "russian"=>"Отсортировать в список слов");

$LRV["option_no_lists_yet"]= 	array("german"=>"bisher keine Listen",
							      "english"=>"no lists yet",
							      "spanish"=>"YYY",
							      "russian"=>"до сих пор никакого списка");

$LRV["title_choose_language"]= array("german"=>"Sprache wählen",
							      "english"=>"Choose language",
							      "spanish"=>"YYY",
							      "russian"=>"Выбрать язык");
$LRV["message_vocable_not_in_db"]= array("german"=>'Vokabel nicht in unserer Datenbank enthalten.<br />'.
									'Du kannst uns gerne fehlende Vokabeln&nbsp;<a href="kontakt.html">melden</a>.'. 
									'Wir versuchen sie innerhalb einer Woche nachzutragen."',
							      "english"=>"WWW",
							      "spanish"=>"YYY",
							      "russian"=>"Слова не содержатся в нашей базе данных. Ты можешь о недостающих словах нам;<a href=\"contact.html\">сообщить</a>.");

$LRV["message_vocable_already_in_table"]=array("german"=>"Vokabel bereits vorhanden in",
							      "english"=>"Vocable already in",
							      "spanish"=>"YYY",
							      "russian"=>"XXX");
$LRV["question_keep_translation_line"]=array("german"=>"Welche Wort- und Übersetzung/en-Zeile möchtest du behalten?",
							      "english"=>"Which line of word and translations do you want to keep?",
							      "spanish"=>"YYY",
							      "russian"=>"XXX");
$LRV["heading_translations"]= 	array("german"=>"Übersetzungen (maximal 3, empfohlen 1)",
							      "english"=>"Translations (maximum: 3, recommended:1)",
							      "spanish"=>"YYY",
							      "russian"=>"Перевод (максимально 3, рекомендованно 1)");
$LRV["alt_title_translation"]= array("german"=>"Übersetzung",
							      "english"=>"Translation",
							      "spanish"=>"YYY",
							      "russian"=>"Перевод");
$LRV["heading_input"]= array("german"=>"Abfrage",
							      "english"=>"Input",
							      "spanish"=>"YYY",
							      "russian"=>"Запрос");
$LRV["heading_answer"]= array("german"=>"Antwort",
							      "english"=>"Answer",
							      "spanish"=>"YYY",
							      "russian"=>"Ответ");
$LRV['alt_title_listening_test']= array("german"=>"Hörprobe",
							      "english"=>"Listening test",
							      "spanish"=>"YYY",
							      "russian"=>"Прослушать");
$LRV["lable_turn_request"]=		array("german"=>"Abfrage umdrehen",
							      "english"=>"Turn request",
							      "spanish"=>"YYY",
							      "russian"=>"Поменять местами запрос");
$LRV["recommended"]= 			array("german"=>"empfohlen",
							      "english"=>"recommended",
							      "spanish"=>"YYY",
							      "russian"=>"рекомендовано");
$LRV["list"]=					array("german"=>"Liste",
							      "english"=>"list",
							      "spanish"=>"lista",
							      "russian"=>"список слов");

//"NEW VOCABLES"-FILE END
/*
//"FILL LEARNBOX"-FILE

$LRV['title_first_region']=		array("german"=>"Aktuell");
$LRV['first_region_line']=		array("german"=>"Vokabeln in Vokabelboxen:");
$LRV['title_second_region']=		array("german"=>"Auffuellen");
$LRV['second_region_radio']=		array("german"=>"Variante");
$LRV['second_region_line']=		array("german"=>"Ergebnis nach Auffüllen");
$LRV['button_refresh']= 		array("german"=>"Aktualisieren");
$LRV['button_fill']=			array("german"=>"Auffüllen");
*/
//GENERAL (contained in more than one file)
$LRV['first_box_title']=		array("german"=>"Box",
									  "english"=>"Box",
									  "spanish"=>"Caja",
									  "russian"=>"Бокс"); 
$LRV['other_boxes_titles']=		array("german"=>"Box",
									  "english"=>"Box",
									  "spanish"=>"Caja",
									  "russian"=>"Бокс");
$LRV['link_create_vocable_list']= 	array("german"=>"Eigene Vokabelliste erstellen",
										  "english"=>"Create your own word list",
										  "spanish"=>"Crear propia lista de vocablos",
										  "russian"=>"Составить собственный список слов");
$LRV['register']= 	array("german"=>"registrieren",
						  "english"=>"register",
						  "spanish"=>"registrarse",
						  "russian"=>"зарегистрироваться");
$LRV['new_wordlist']= 	array("german"=>"neue-vokabelliste",
						  "english"=>"new-wordlist",
						  "spanish"=>"nueva-lista",
						  "russian"=>"new-wordlist");
$LRV['wordbox']= 	array("german"=>"Vokabelbox",
						  "english"=>"Word Box",
						  "spanish"=>"Caja de palabras",
						  "russian"=>"Бокс для слов");
$LRV['settings']= 	array("german"=>"einstellungen",
						  "english"=>"settings",
						  "spanish"=>"ajustes",
						  "russian"=>"settings");

//names of folders
$LRV["folder_images"]= array("german"=>"bilder",
						  "english"=>"images",
						  "spanish"=>"imagenes",
						  "russian"=>"images");



	$LRV_prebuilt=array();
	foreach ($LRV as $key=>$value_array)
	{	
		$value_in_correct_language=$value_array[$language];
		$LRV_prebuilt[$key]=$value_in_correct_language;	
	}
	$LRV=$LRV_prebuilt;
return $LRV;
}
?>